import axios from "../utils/request";

//全部练习
export interface RecordreturnRecordInfoData {
  subjectID: number; //学科id
}
export function RecordreturnRecordInfo(params: RecordreturnRecordInfoData) {
  return axios.post("/api/Record/returnRecordInfo", params);
}
//错题练习
export interface RecordrecorderrData {
  sid: number; //学科id
}
export function Recordrecorderr(params: RecordrecorderrData) {
  return axios.post("/api/Record/recorderr", params);
}


//每日练习
export interface RecordrecordOneData {
  sid: number; //学科id
}
export function RecordrecordOne(params: RecordrecordOneData) {
  return axios.post("/api/Record/recordOne", params);
}

//错题列表
export interface RecordwrongTestListData {
  id: number; //列表返回klID字段
}
export function RecordwrongTestList(params: RecordwrongTestListData) {
  return axios.post("/api/Record/wrongTestList", params);
}

//开始测试
export interface RecordwrongDocTestData {
  klid: number; //列表返回klID字段
  subid: number; //学科
}
export function RecordwrongDocTest(params: RecordwrongDocTestData) {
  return axios.post("/api/Record/wrongDocTest", params);
}